package Utils;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Conexao {
	public static Connection getConection() {
		Connection con = null;
		try {
			Class.forName("com.mysql.jdbc.Driver");
//			String url = "jdbc:mysql://mysql.signefro.com.br/signefro";
//			con = DriverManager.getConnection(url, "signefro", "s1gn3fr02012");			
			String url = "jdbc:mysql://localhost/signefrodb";
			con = DriverManager.getConnection(url, "root", "verdade");			
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();	
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return con;
	}	
}
